package com.gsm.dao;

import com.gsm.po.Chapter;

import java.util.List;

/**
 * 课程章节(Chapter)表数据库访问层
 *
 * @author wjq
 * @since 2020-11-28 09:59:47
 */
public interface ChapterDao {

    int insertChapter(Chapter chapter);

    int deleteChapterByChapterId(Long chapterId);

    int updateChapterByChapterId(Chapter chapter);

    Chapter selectChapterByChapterId(Long chapterId);

    List<Chapter> selectChapterList(Chapter chapter);

    Integer selectMaxShowOrderBySubjectId(Long subjectId);

    int deleteChapterByChapterIds(List<Long> list);

    int updateChapterShowOrder(List<Long> list);
}